#告警
from selenium.webdriver.common.by import By
from base.base import Base

class RunRport(Base):
    #页面跳转
    pagetitle_locator = (By.XPATH,'(//li[@role="menuitem"])[6]')
    #报告列表
    reportlist_locator = (By.XPATH,'//td[contains(@class,"ant-table-cell")]')



    #页面跳转
    def pagejump(self):
        self.click(self.pagetitle_locator)
    #获取运行报告
    def get_repotlist(self):
        values = []
        elms = self.finds(self.reportlist_locator)
        for index,elm in enumerate(elms):
            if index%4 != 3:
                values.append(elm.text)
        return values